/* 个股异动页面样式 */
.stock-alert-page {
    animation: fadeIn 0.5s ease-in-out;
}

/* 双面板布局 */
.stock-panel-layout {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: flex-start;
}

/* 左侧股票列表面板 */
.stock-list-panel {
    flex: 0 0 18%;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    max-height: 80vh;
}

/* 右侧异动详情面板 */
.stock-detail-panel {
    flex: 1;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    max-height: 80vh;
    overflow: hidden;
}

/* 面板头部 */
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ebeef5;
}

.panel-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.panel-actions {
    display: flex;
    gap: 8px;
}

/* 搜索框样式 */
.search-input {
    margin-bottom: 15px;
}

.search-input .el-input__inner {
    border-radius: 4px;
    border: 1px solid #dcdfe6;
    transition: border-color 0.3s ease;
}

.search-input .el-input__inner:focus {
    border-color: #409eff;
}

/* 股票表格容器 */
.stock-table-container {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* 股票表格样式 */
.stock-table {
    flex: 1;
    overflow-y: auto;
}

.stock-table .el-table {
    font-size: 13px;
}

.stock-table .el-table th {
    background-color: #f8f9fa;
    color: #2c3e50;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

.stock-table .el-table td {
    padding: 8px 0;
}

/* 选中行样式 */
.stock-table .selected-row {
    background-color: #ecf5ff !important;
}

.stock-table .selected-row:hover {
    background-color: #dbeafe !important;
}

/* 股票代码列 */
.stock-code {
    font-weight: 600;
    color: #409eff;
    cursor: pointer;
}

.stock-code:hover {
    color: #66b1ff;
}

/* 股票名称列 */
.stock-name {
    font-weight: 500;
    color: #2c3e50;
}

/* 拼音标识 */
.stock-pinyin {
    font-size: 11px;
    color: #909399;
    background: #f4f4f5;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
}

/* 欢迎面板 */
.welcome-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 异动数据容器 */
.alert-data-container {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* 统计信息容器 */
.statistics-info {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

/* 异动表格样式 */
.alert-table {
    flex: 1;
    overflow-y: auto;
}

.alert-table .el-table {
    font-size: 13px;
}

.alert-table .el-table th {
    background-color: #f8f9fa;
    color: #2c3e50;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

.alert-table .el-table td {
    padding: 8px 0;
}

/* 分页样式 */
.pagination-wrapper {
    padding: 15px 0;
    border-top: 1px solid #ebeef5;
    display: flex;
    justify-content: center;
}

/* 加载遮罩 */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-radius: 8px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 查询状态面板 */
.query-status {
    margin-bottom: 20px;
}

.query-status .el-alert {
    margin-bottom: 10px;
}

/* 个股异动容器 */
.stock-alert-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

/* 表格样式 */
.stock-alert-container .el-table {
    font-size: 14px;
}

.stock-alert-container .el-table th {
    background-color: #f8f9fa;
    color: #2c3e50;
    font-weight: 600;
}

.stock-alert-container .el-table td {
    padding: 12px 0;
}

/* 板块标签样式 */
.stock-alert-container .el-tag {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
}

/* 连板天数和版数标签 */
.stock-alert-container .el-tag--mini {
    height: 20px;
    line-height: 18px;
    font-size: 11px;
    padding: 0 6px;
}

/* 股票代码链接 */
.stock-alert-container .el-link {
    font-weight: 600;
    font-size: 13px;
}

/* 统计数字样式 */
.stock-alert-container .el-statistic {
    text-align: center;
}

.stock-alert-container .el-statistic .el-statistic__content {
    font-weight: bold;
}

/* 分页容器 */
.pagination-container {
    margin-top: 20px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #ebeef5;
}

/* 空状态容器 */
.empty-container,
.welcome-container {
    background: white;
    border-radius: 8px;
    padding: 60px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-bottom: 20px;
}

/* 详情对话框 */
.detail-content {
    padding: 20px 0;
}

.detail-content .el-descriptions {
    margin-bottom: 20px;
}

.detail-content .el-descriptions-item__label {
    font-weight: 600;
    color: #606266;
    width: 120px;
}

.detail-content .el-descriptions-item__content {
    color: #2c3e50;
}

/* 统计面板样式 */
.statistics-panel {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.statistics-panel h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

.stat-card {
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stat-title {
    color: #606266;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 500;
}

.stat-value {
    color: #2c3e50;
    font-size: 24px;
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .header-actions {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .header-actions .el-select {
        width: 100% !important;
    }
    
    .stock-alert-container {
        padding: 15px;
        overflow-x: auto;
    }
    
    .statistics-panel .el-col {
        margin-bottom: 15px;
    }
    
    /* 双面板响应式布局 */
    .stock-panel-layout {
        flex-direction: column;
        gap: 15px;
    }
    
    .stock-list-panel,
    .stock-detail-panel {
        flex: none;
        max-height: none;
    }
    
    .panel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .panel-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .stock-table .el-table,
    .alert-table .el-table {
        font-size: 12px;
    }
    
    .stock-table .el-table td,
    .alert-table .el-table td {
        padding: 6px 0;
    }
    
    .stat-card {
        margin-bottom: 10px;
    }
}

/* 加载状态 */
.stock-alert-container .el-loading-mask {
    border-radius: 8px;
}

/* 表格行悬停效果 */
.stock-alert-container .el-table tbody tr:hover > td {
    background-color: #f5f7fa !important;
}

/* 操作按钮样式 */
.stock-alert-container .el-button--text {
    padding: 0;
    font-size: 12px;
    color: #409eff;
}

.stock-alert-container .el-button--text:hover {
    color: #66b1ff;
}

/* 对话框样式 */
.el-dialog {
    border-radius: 8px;
}

.el-dialog__header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #ebeef5;
    padding: 20px;
}

.el-dialog__title {
    font-weight: 600;
    color: #2c3e50;
}

.el-dialog__body {
    padding: 20px;
}

.el-dialog__footer {
    padding: 20px;
    border-top: 1px solid #ebeef5;
}

/* 页面头部样式优化 */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-header h2 {
    color: #2c3e50;
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 搜索选择器样式优化 */
.el-select .el-input__inner {
    border-radius: 4px;
    border: 1px solid #dcdfe6;
    transition: border-color 0.3s ease;
}

.el-select .el-input__inner:focus {
    border-color: #409eff;
}

/* 按钮样式优化 */
.el-button {
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.el-button:hover {
    transform: translateY(-1px);
}

.el-button--primary {
    background: linear-gradient(135deg, #409eff, #66b1ff);
    border: none;
}

.el-button--primary:hover {
    background: linear-gradient(135deg, #66b1ff, #409eff);
}